typedef struct {
GtkTextIter *iters;
guint count;
- guint alloced;
+ guint allocated;
} IterStack;
static IterStack*
stack = g_slice_new (IterStack);
stack->iters = NULL;
stack->count = 0;
- stack->alloced = 0;
+ stack->allocated = 0;
return stack;
}
const GtkTextIter *iter)
{
stack->count += 1;
- if (stack->count > stack->alloced)
+ if (stack->count > stack->allocated)
{
- stack->alloced = stack->count*2;
+ stack->allocated = stack->count*2;
stack->iters = g_realloc (stack->iters,
- stack->alloced * sizeof (GtkTextIter));
+ stack->allocated * sizeof (GtkTextIter));
}
stack->iters[stack->count-1] = *iter;
}